package com.ssw.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @Author: 孙常胜
 * @CreateTime: 2021/7/23 16:16
 * @Description:
 */
@Component
public class Start implements CommandLineRunner {
    @Autowired
    private MessageProducer messageProducer;
    @Override
    public void run(String... args) throws Exception {
        messageProducer.start();
    }
}
